package com.gitee.wsl.mathematics.interpolator.ext

import com.gitee.wsl.mathematics.interpolator.PercentOrRatio
import com.gitee.wsl.time.milliseconds
import kotlin.time.Duration

fun PercentOrRatio.interpolate(a: Duration, b: Duration): Duration = this.interpolate(a.milliseconds, b.milliseconds).milliseconds
